import { defHttp } from "@/utils/http";

// ERP 容量API
export const doseUnitApi = {
	// 获得容量分页
	doseUnitList: async (params: any) => {
		return await defHttp.get({ url: `/whs/dose-unit/page`, params });
	},
	// 新增容量
	doseUnitCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/dose-unit/create`, data });
	},

	// 修改容量
	doseUnitUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/dose-unit/update`, data });
	},

	// 删除容量
	doseUnitDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/dose-unit/delete?id=` + id });
	}
};
